﻿// =================================================================== 
// Module说明
//====================================================================
// 创建时间：2018-12-13 22:15:00
// 负责人：Sushee
// ===================================================================
using System;
using System.Data;
using System.Collections.Generic;
using System.Linq.Expressions;
using OF.Utility;
using OF.Component.Model;
using OF.Component.IDAL;
using OF.Component.Factory;
namespace OF.Component.BLL
{
	
	/// <summary>
	/// 扩展
	/// </summary>
	public partial class UserAuthOperate
	{
        /// <summary>
    	/// 根据断言条件获取单个
    	/// </summary>
        public static UserAuthInfo QuerySingle(Expression<Func<UserAuthInfo, bool>> predicate)
        {
            return dal.QuerySingle(predicate);
        }
        
        /// <summary>
    	/// 根据断言条件获获取列表
    	/// </summary>
        public static IList<UserAuthInfo> QueryList(Expression<Func<UserAuthInfo, bool>> predicate)
        {
            return dal.QueryList(predicate);
        }

        /// <summary>
        /// 获取授权信息
        /// </summary>
        /// <param name="userId">用户id</param>
        /// <returns></returns>
        public static UserAuthInfo GetByUser(long userId)
        {
            return dal.GetByUser(userId);
        }
    }
}